#ifndef CPW_H
#define CPW_H

#include <QWizard>
#include <QShowEvent>
#include <QSqlTableModel>
#include <QSqlQueryModel>

namespace Ui {
class CompetitionPropertesWizard;
}

class CompetitionPropertesWizard : public QWizard
{
    Q_OBJECT

public:
    explicit CompetitionPropertesWizard(QSqlDatabase db, QWidget *parent = 0);
    ~CompetitionPropertesWizard();

private slots:
    void on_actionMemberGroupAdd_triggered();

    void on_actionMemberGroupRemove_triggered();

    void on_actionMemberGroupSelect_triggered();

private:
    Ui::CompetitionPropertesWizard *ui;
    QSqlDatabase dbase;
    QSqlQueryModel *query;
    QSqlTableModel *modelGroups;

    void showEvent(QShowEvent*);
};

#endif // CPW_H
